# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=bpfmon
pkgver=2.50
pkgrel=0
pkgdesc="BPF based visual packet rate monitor"
url="https://github.com/bbonev/bpfmon"
arch="all"
license="GPL-2.0-or-later"
makedepends="libpcap-dev yascreen-dev"
options="!check" # no test
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/bbonev/bpfmon/archive/v$pkgver.tar.gz
	fix-makefile.patch"

build() {
	make PREFIX=/usr
}

package() {
	make PREFIX=/usr INSTALL=install DESTDIR="$pkgdir" install
	install -Dm0644 bpfmon.8 "$pkgdir"/usr/share/man/man8/bpfmon.8
}

sha512sums="
471b4e3af4fb5bbd408871c2854dac12bc8457196d72507ac465bb93281dafd5eaad1273f0d4ac4ed05358a0dd37bc7133e56cb5bc8cfd63ca97e50a020f39a3  bpfmon-2.50.tar.gz
b70c5c322408305f5d8d26ac72929449838f0e829c8c5759b8847103fd429fe64239eaca03bda6f5baa54b2a352af2dcd97a2d77bce2fcf0e91d3d9ac8e7de0e  fix-makefile.patch
"
